using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

#if UNITY_EDITOR
public class BuffDataImporter : AssetPostprocessor
{
    void OnPreprocessAsset()
    {
        if (assetImporter.assetPath.EndsWith(".asset"))
        {
            var buff = AssetDatabase.LoadAssetAtPath<BuffData>(assetImporter.assetPath);
            //if (buff != null && (int)buff.Tags == 4)
            //{
            //    Logger.Log($"�Զ��޸�������Դ: {assetImporter.assetPath}");
            //    buff.Tags = BuffTag.Knockback;
            //    EditorUtility.SetDirty(buff);
            //    AssetDatabase.SaveAssetIfDirty(buff);
            //}
        }
    }
}
#endif
